Use g_snprintf instead of snprintf.
authorIgnacio Casal Quinteiro <icq@gnome.org>
Wed, 10 Aug 2016 10:29:01 +0000 (12:29 +0200)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Wed, 10 Aug 2016 10:45:39 +0000 (12:45 +0200)
snprintf is not compatible with msvc.

gtk/gtkscale.c
gtk/gtkspinbutton.c

index 8c2f797488fb7231cc34678d988535683861d141..895438cb85d6b2517f4765ffc04b6d423c96cc45 100644 (file)
@@ -1934,7 +1934,8 @@ gtk_scale_real_get_layout_offsets (GtkScale *scale,
 }
 
 static gchar *
-weed_out_neg_zero (gchar *str, gint digits)
+weed_out_neg_zero (gchar *str,
+                   gint   digits)
 {
   if (str[0] == '-')
     {
index 452ed334683ec5df5f3761149c8cc996064f0b33..7ddaac658cc550bcbe78f40e56103fa386d12210 100644 (file)
@@ -1116,7 +1116,8 @@ measure_string_width (PangoLayout *layout,
 }
 
 static gchar *
-weed_out_neg_zero (gchar *str, gint digits)
+weed_out_neg_zero (gchar *str,
+                   gint   digits)
 {
   if (str[0] == '-')
     {